package trunk.gui;

import trunk.res.R;

import javax.swing.*;
import java.awt.*;

/**
 * this panel is used for displaying the status of the registers
 * Created by IntelliJ IDEA.
 * User: User
 * Date: 11-12-13
 * Time: 上午10:44
 * To change this template use File | Settings | File Templates.
 */
public class StatusPanel extends JPanel {
    public StatusPanel() {
        super(true);    //null for do not use a layout, true for enable double buffer
        this.setBounds(
                0,
                R.attribute.SIM_PANEL_HEIGHT,
                R.attribute.STATUS_PANEL_WIDTH,
                R.attribute.STATUS_PANEL_HEIGHT);    //set a fixed location in its container
        this.setBorder(R.attribute.BORDER);

        initialize();

        this.setVisible(true);
    }

    public void initialize() {
        for (int i = 0; i < 20; i++) {
            this.add(new Button("Test\t" + i));
        }
    }


}
